package POJO;

import java.io.Serializable;
/*
若想要被序列化，必须实现响应接口
 */
public class Dog implements Serializable {
    private String dogName;

    public Dog(String dogName) {
        this.dogName = dogName;
    }

    public Dog() {
    }

    public String getDogName() {
        return dogName;
    }

    public void setDogName(String dogName) {
        this.dogName = dogName;
    }

    @Override
    public String toString() {
        return "dog{" +
                "dogName='" + dogName + '\'' +
                '}';
    }
}
